import Vue from 'vue'
import Router from 'vue-router'
// import PageIndex from '@/pages/index'
import pageInvest from '@/pages/invest'
import pageAccount from '@/pages/account'
import pageSecurity from '@/pages/security'
import investXtb from '@/pages/investXtb'
import investZqzr from '@/pages/investZqzr'
// import investDetailXtb from '@/pages/investDetailXtb'
// import PageLogin from '@/pages/login'
// import PageRegister from '@/pages/register'
// import forgetPassword from '@/pages/forgetPassword'
// import transferFasterestIndex from '@/pages/transferFasterestIndex'
// import transferFasterestTotal from '@/pages/transferFasterestTotal'
import transferFasterestSubmit from '@/pages/transferFasterestSubmit'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: transferFasterestSubmit
    },
    {
      path: '/pageInvest',
      component: pageInvest,
      children: [
        {
          path: '',
          redirect: 'investXtb'
        },
        {
          path: 'investXtb',
          component: investXtb
        },
        {
          path: 'investZqzr',
          component: investZqzr
        }
      ]
    },
    {
      path: '/pageSecurity',
      component: pageSecurity
    },
    {
      path: '/pageAccount',
      component: pageAccount
    }
  ]
})
